package ooday02;

public class ExtebdesTest {
    public static void main(String[] args) {
        Student gtq = new Student("光头强", 25, "囤结屯", "砍树班", "1007");
        gtq.eat();
        gtq.sleep();
        gtq.sayHi();
        gtq.study();
        System.out.println("--------------------");

        Teacher xd = new Teacher("熊大", 12, "狗熊岭", 1000000);
        xd.eat();
        xd.sleep();
        xd.sayHi();
        xd.teach();
        System.out.println("--------------------");

        Doctor xe = new Doctor("熊二", 12, "狗熊岭", "妇科");
        xe.eat();
        xe.sleep();
        xe.sayHi();
        xe.cut();

/*
        Teacher ls = new Teacher();
        ls.name = "李四";
        ls.age = 55;
        ls.address = "越南";
        ls.salary = 50;
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();
        System.out.println("--------------------");
 */

        /*
        Student zs = new Student();
        zs.name = "张三";
        zs.age = 88;
        zs.address = "缅甸北部";
        zs.className = "干饭班";
        zs.stuId = "12586";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();
        System.out.println("--------------------");
         */
        /*
        Doctor ww = new Doctor();
        ww.name = "王五";
        ww.age = 99;
        ww.address = "东京";
        ww.title = "噶腰子";
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
        System.out.println("--------------------");
 */
    }
}
